package com.sui.bigdata.sml.model.util;

import com.feidee.fdcommon.configuration.CustomConfiguration;

/**
 * @author songhaicheng
 * @date 2019/11/7 14:58
 * @description
 * @reviewer
 */
public class Constants {

    public static final String ARG_BOOTSTRAP = "bootstrap";

    public static final String[] TENSORFLOW_SERVING_IP = {"127.0.0.1"};
    public static final String TENSORFLOW_MODEL_NAME = "model";
   // public static final String TENSORFLOW_MODEL_NAME = CustomConfiguration.getString(Constants.SERVING_TOKEN);
    public static final int TENSORFLOW_SERVING_PORT = 8500;

    public static final String MODEL_POOL_MAX_TOTAL = "model.pool.maxTotal";
    public static final String MODEL_POOL_MAX_IDLE_PER_KEY = "model.pool.maxIdlePerKey";
    public static final String MODEL_POOL_MAX_TOTAL_PER_KEY = "model.pool.maxTotalPerKey";
    public static final String MODEL_POOL_MIN_IDLE_PER_KEY = "model.pool.minIdlePerKey";
    public static final String MODEL_POOL_BLOCK_WHEN_EXHAUSTED = "model.pool.blockWhenExhausted";
    public static final String MODEL_POOL_FAIRNESS = "model.pool.fairness";
    public static final String MODEL_POOL_BORROW_MAX_WAIT_MILLIS = "model.pool.borrowMaxWaitMillis";

    public static final String SERVING_TOKEN = "serving.token";
    public static final String LOG_MODELS = "log.model";
    public static final String LOG_MODEL_PATHS = "log.model.paths";
    public static final String LOG_BUSINESS_ID = "sml_realtime_forecast";

    public static final String TRACE_ID = "traceId";

    public static final String REQUEST_INTERVAL = "request.interval";
    public static final int VERIFY_SUCCESS_CODE = 0;

}
